package com.batata.continuing.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigInteger;

/**
 * 用户信息表
 */
@Data
@TableName("user_info")
public class UserInfo {

    /**
     * 主键
     *
     * @TableId中可以决定主键的类型,不写会采取默认值,默认值可以在yml中配置 AUTO: 数据库ID自增
     * INPUT: 用户输入ID
     * ID_WORKER: 全局唯一ID，Long类型的主键
     * ID_WORKER_STR: 字符串全局唯一ID
     * UUID: 全局唯一ID，UUID类型的主键
     * NONE: 该类型为未设置主键类型
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户id", required = false, hidden = true)
    private BigInteger id;

    @ApiModelProperty(value = "昵称")
    private String userName;

    @ApiModelProperty(value = "登录名 账号")
    private String loginName;

    @ApiModelProperty(value = "登录密码")
    private String loginPassword;

    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @ApiModelProperty(value = "性别 0 是男 1 是女")
    private String sex;

    @ApiModelProperty(value = "性别 中文", hidden = true)
    private String sexText;

    @ApiModelProperty(value = "建立时间", hidden = true)
    private String jlsj;


}
